home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
e
/
misc.txt
/
000318_fdc@panix.com_Wed Feb 17 14:57:51 2010.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: reader2.panix.com!panix!not-for-mail
From: Frank da Cruz <fdc@panix.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: script file for auto dialing
Date: Wed, 17 Feb 2010 19:57:00 +0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 46
Message-ID: <slrnhnoigd.mm5.fdc@panix3.panix.com>
References: <d9428617-3a70-4807-a391-12b64ebd86af@u9g2000yqb.googlegroups.com> <57930745-41d1-442a-bace-fb488a9f2c37@b9g2000pri.googlegroups.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: panix3.panix.com
X-Trace: reader2.panix.com 1266436620 17798 166.84.1.3 (17 Feb 2010 19:57:00 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Wed, 17 Feb 2010 19:57:00 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (NetBSD)
Xref: panix comp.protocols.kermit.misc:15918
On 2010-02-16, Mark Sapiro <mark@msapiro.net> wrote:
: It should be easy enough to modify the script at:
:
: ftp://kermit.columbia.edu/kermit/scripts/ckermit/autodial
:
: to accept a list, or perhaps one of the other scripts at:
:
: http://www.columbia.edu/kermit/ckscripts.html#modm
:
: is closer to what you want.
:
If you mean, try a bunch of different numbers to reach one specific
service or host, you can do that with a dialing directory, or you
can actually put a list of numbers in the DIAL command itself,
like this:
dial {{firstnumber}{secondnumber}{thirdnumber}...{lastnumber}}
The curly braces are part of the command. The technique is described here:
http://www.columbia.edu/kermit/ckermit70.html#x2.1.16
If you mean dial a bunch of different hosts or services, one after the
other, that would be a matter of parameterizing the autodial script,
and then writing another short script to call it in a loop with the
appropriate parameters for each host or service.
Or you could do it all in a single, simple script.
declare \&a[] = firstnumber secondnumber .... lastnumber
set port /dev/ttyS0 # or whatever
set speed 57600 # or whatever
set modem type generic # or whatever
set flow rts/cts
for i 1 \fdim(&a) 1 {
dial \&a[i]
if fail echo "DIAL \&a[i] failed - continuing..."
# put the code here to do whatever you want to do with the call...
}
If you have different access information for each host, that
could go into parallel arrays.
- Frank